package com.cjgl.model.enums;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author zhangyuwu
 */

public enum SelectCourseOpenTypeEnum {
	PUBLIC_COURSE("Public_Course", 1),
	PROFESSIONAL_COURSE("Professional_Course", 2),
	PUBLIC_BASIC_COURSE("Public_Basic_Course", 3),
	IS_OPEN("Is_Open", 1);


	private final String type;

	private final int value;

	SelectCourseOpenTypeEnum(String type, int value) {
		this.type = type;
		this.value = value;
	}

	public static List<Integer> getValues() {
		return Arrays.stream(values()).map(item -> item.value).collect(Collectors.toList());
	}

	public String getType() {
		return type;
	}

	public int getValue() {
		return value;
	}
}
